<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>


<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9,10">
<meta name="viewport"
	content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<title>时代地产GIS平台</title>
<script type="text/javascript" src="app/index_include.js"></script>

<script type="text/javascript"></script>
<script>
  var path = location.pathname;
  console.log(path)
  path = path.slice(0, path.lastIndexOf("/") + 1);
  var dojoConfig = {
	serverIP : location.host,
	gfxRenderer: "svg,canvas,vml",
	packages : [
	             {name : 'app' , location:path+'app'},
	             {name : 'gistech',location:path+'gistech'}
	           ]
  };
</script>
<body class="claro">
	<div id="wrapper">
		<div id="header">
			<div id="logo">
				<!-- bootstrap select 可搜索的-->
			</div>
			<div id="querybar"></div>
			<div id="banner">
				<li class="banner"></li>
			</div>
			<div class="BreakingNewsController easing" id="breakingnews2">
				<div class="bn-title"></div>
				<ul id="messUl">
				</ul>
<!-- 				<div class="bn-arrows">
					<span class="bn-arrows-left"></span><span class="bn-arrows-right"></span>
				</div> -->
			</div>

			<div id="welcome">
				<li class="accout"></li>
				<span id="username"></span>
			</div>

		</div>
		<div id="sysmanagemenu" style="display: none;">
			<!-- <li class="yunwei"></li> -->
			<span class="glyphicon glyphicon-cog" id="yunwei" aria-hidden="true"></span>
			<span id="sysmanagepage">运维</span>

			<span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>
			<span id="help">帮助</span>
			
			<span class="glyphicon glyphicon-volume-up" aria-hidden="true"></span>
			<span id="message">通知</span>
			
			<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
			<span id="quiteout">退出</span>
		</div>
		<div id="menubarDiv"></div>
		<!--左侧侧Bar-->
		<div id="leftTabCon" style="top: 84px;"></div>
		<!--右侧侧Bar-->
		<div id="rightTabCon" style="top: 84px;"></div>
		<!--主区域-->
		<div class="mainArea" id="mainArea" style="top: 64px;">
			<div  id="map" class="mapLayout"
				style="height: 100%; width: 100%; position: absolute;">			
			</div>
		</div>
		<div id="dialog"></div>
		<div id="PassWordWidget"></div>
		<div id="frontHeatDiagramDialog"></div>
		<div id="LandResTreeDialog"></div>
		<div id="organizationEditDialog"></div>
		<div id="clusterSearchDialog"></div>
		<div id="clusterPieTestDialog"></div>
		<div id="clusterSearchDialog"></div>
		<div id="bookMarkDialog"></div>
		<div id="bookMarkEditDialog"></div>
		<!--  <div data-dojo-attach-point="stat" id="stat" style="position: absolute;width:100px;height:100px;" >-->
	</div>
</body>
<script src="/arcgis_js_api/v313/library/3.13/init.js"></script>
<script src="app/config.js"></script>
<script src="app/FieldTable.js"></script>

<script>

  var userInfo= '<%=request.getSession().getAttribute("userInfo")%>'; 
  if(userInfo=="null"){
	  window.location.href="http://<%=request.getServerName() + ":" + request.getServerPort()%>/sddc/login.jsp";
  }
 //可视区域
 ioc.map.userRoleArea= '<%=request.getSession().getAttribute("roleArea")%>'; 
 
 //可管理/查看人员
 ioc.map.menagerUsers = '<%=request.getSession().getAttribute("menagerUsers")%>'
 
//后台管理地址
ioc.map.platformManagerUrl= '<%=request.getSession().getAttribute("platformManagerUrl")%>'; 

//可查看模块 注:取FIELDS属性时需将 % 转 '
ioc.map.userRoleModule= '<%=request.getSession().getAttribute("roleModules")%>'; 

//可查看专题 注:取FIELDS属性时需将 % 转 ' 
ioc.map.userRoleResource= '<%=request.getSession().getAttribute("roleResources")%>'; 


//当为集团负责人时有对应集团名称[聚合模块中项目状态聚合只能集团负责人查看]
//ioc.map.companyName = '<%=request.getSession().getAttribute("companyName")%>';  

	var userInfoData = eval(userInfo)[0];
	var displayname = userInfoData.DISPLAYNAME;

	document.getElementById('username').innerText  = displayname;
	var loginusername = {
		loginname : "admin",
		username : displayname
	};
	require([ "dojo/domReady!", "app/Main", "dojo/on" ], function(domReady,
			Main, on) {
		 
		ioc.map.userInfoData = userInfoData;
		Main.initApp();
	})
</script>
</html>